{extend name="base/main" }

{block name="body"}
<link rel="stylesheet" type="text/css" href="/assets/index/vplay.css">

<div class="dst_loc">
    <div class="dst_loc_1">当前位置：
        <a href="/" target="_self">直播首页</a> &gt;&gt; <a href="/pindao">网络电视</a>  >> <?php echo $doclist[0]['ttype']; ?> 
        <span id="dline1"></span></div>
    <div class="dst_loc_2">
    <div class="tvso_1">
        <input id="myso" name="myso" type="text" value="搜索视频、新闻、电视台" onfocus="this.select()" onmouseover="this.focus()" onkeydown="responseme();" onblur="if(this.value=='')this.value=defaultValue" onclick="if(this.value==this.defaultValue)this.value = ''"></div>
        <div class="tvso_2"><input id="Button1" type="button" value="搜索" onclick="isou();"></div>
    </div>
</div>

<div class="dst_ct">

    <div class="dst_ct_l">
        <div class="dst_ct_l1">
            <div class="dst_title">
                <span class="dst_title_1"><?php echo $doclist[0]['ttype']; ?> </span>
                <span class="dst_title_2"></span>
            </div>
            <ul class="dst_list">
                <?php foreach($doclist as $s): ?>  
                <li><p class="dst_tv"><a href="/pindao/info/<?php echo $s['id']; ?>">
                    <img src="<?php echo $s['tlogo']; ?>" alt="<?php echo $s['tname']; ?>"></a>
                    <a href="/pindao/info/<?php echo $s['id']; ?>"><?php echo $s['tname']; ?></a></p>
                    <p><a href="/pindao/info/<?php echo $s['id']; ?>">节目表</a></p>
                </li>
                <?php endforeach; ?>
            </ul>


            <div id="page" class="pages">
                <ul>
                    <li>总记录：<span><?php echo $doclist->total(); ?></span></li>
                    <li><span><?php echo $doclist->currentPage(); ?></span>/<span><?php echo $doclist->lastPage(); ?></span></li>
                </ul>
                <?php echo $doclist->render(); ?>
                <div class="page_clear"></div>
            </div>    
        </div>

    </div>


    <div class="dst_ct_r">
        <div class="dst_ct_r1">
            <div class="dst_title">最新</div>
                <ul class="dst_new">
                    <?php
                    $tvlist = db("tv" , [] , false)->field("id,tname")->order('id desc')->limit(20)->select();
                    foreach($tvlist as $v):
                    ?>
                    <li><span></span><a href="/pindao/info/<?php echo $v['id']; ?>"><?php echo $v['tname']; ?></a></li>
                    <?php endforeach; ?>
                </ul>
            </div>

        </div>


</div>


{/block}